package com.mycompany.app.common.extmenu;

import java.io.IOException;
import java.util.Set;

import org.codehaus.groovy.control.CompilationFailedException;

/**
 * Acegi security check and I18N support
 * @author Shawn.guo
 *
 */
public interface IExtTreeProvider {
    /**
     * Gets authorized menu as a format of json, the full menu was stored in xml file.
     * @param auths 
     * @return
     * @throws IOException 
     * @throws CompilationFailedException 
     * @throws IllegalAccessException 
     * @throws InstantiationException 
     */
    public String provide(Set auths,String locale);
}
